/**
 * Created by Yun on 2015-12-19.
 */

export default class StatusError extends Error {
  constructor(code, message) {
    super(message);
    this.code = code;
  }
}

export const BAD_REQUEST = new StatusError(400, 'Bad Request');
export const FORBIDDEN = new StatusError(403, 'Forbidden');
export const NOT_FOUND = new StatusError(404,'Not found');

export const INVALID_API = new StatusError(404, 'Invalid API');
